package com.aaa.project.controller;


import com.aaa.project.service.IGBrandService;
import com.aaa.util.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 品牌 前端控制器
 * </p>
 *
 * @author zhangxuhui
 * @since 2023-02-19
 */
@RestController
@RequestMapping("/g-brand")
public class GBrandController {

    @Resource
    private IGBrandService brandService;

    @PostMapping("getAllBrand")
    public Result getAllBrand(){
        return new Result(brandService.list());
    }


}

